@charset "utf-8";
//scss文件引入common
@import "common.scss";

/*移动端布局框架搭建*/
//声明变量
$width:7.5rem;

header{
    width: $width;
    height: 0.9rem;
    background:#0979f7 url(../img/header_02.png) no-repeat;
    background-size: 7.5rem 0.9rem;
    >p{
        width: $width;
        font-size: 0.36rem;
        line-height: 0.90rem;
        text-align: center;
    }
}
footer{
    width: $width;
    height: 0.98rem;
    border-top: 1px solid #d7d6dc;
    >ul{
        display: flex;
        justify-content: space-around;
        align-items: auto;
        >li{
            height: 0.84rem;
            text-align: center;
            >a{
                >img{
                    padding-top: 0.14rem;
                    width: 0.40rem;
                    height: 0.40rem;
                }
            }
            >p{
                line-height: 0.45rem;
                >a{
                    font-size: 0.24rem;
                }
                >a.active{
                    color: #009ee8;
                }
            }
        }
    }
}
//为了body设置100%
html{
    height: 100%;
}
body{
    //百分比：相对单位，相对于父级，这里指的是hmtl
    //为了main部分占满手机空白
    height: 100%;
    //声明父盒子为弹性盒子
    
    display: flex;
    //改变主轴方向
    flex-direction: column;
}
.main{
    width: $width;
    flex: 1;
    overflow: hidden;
    //  banner
    >.main-content{
        min-height: 101%;
//      height: 450%;
        >.main-banner{
            width: 7.5rem;
            >img{
                width: 7.5rem;
                height: 3.25rem;
            }
        }
        //  九宫格/导航
        >.main-nav{
            width: 7.5rem;
            >ul{
                width: 7.5rem;
                display: flex;
                justify-content: space-around;
                align-items: center;
                flex-wrap: wrap;
                text-align: center;
                >li{
                    width: 1.60rem;
                    height: 1.45rem;
                    padding-top: 0.3rem;
                    >a{
                        >img{
                            width: 0.96rem;
                            height: 1.10rem;
                        }
                    }
                    >p{
                        margin-top: 0.06rem;
                        >a{
                            font-size: 0.24rem;
                        }
                    }
                }
            }
        }
        >.main-imags1{
            width: 7.5rem;
            display: flex;
            justify-content: space-around;
            padding-bottom: 0.26rem;
            border-bottom: 0.3rem solid #f2f3f5;
            margin-top: 0.2rem;
            >img{
                width: 2.18rem;
                height: 1.20rem;
                border-radius: 0.1rem;
                box-shadow: 0rem 0rem 0.05rem #e7e7e7;
            }
        }
        >.main-imags2{
            width: 7.5rem;
            height: 3.54rem;
            display: flex;
            justify-content: space-around;
            padding-top: 32px;
            border-bottom: 0.3rem solid #f2f3f5;
            flex-wrap: wrap;
            >img{
                width: 3.3rem;
                height: 1.58rem;
            }
        }
        >.main-dl{
            width: $width;
            >dl{
                width: $width;
                height: 4.53rem;
                border-bottom: 0.3rem solid #f2f3f5;
                >dt{
                    width: $width;
                    height: 3.22rem;
                    >img{
                        width: $width;
                        height: 3.22rem;
                    }
                }
                >dd{
                    width: $width;
                    height: 1.31rem;
                    margin-left: 0.3rem;
                    >h2{
                        width: $width;
                        font-size: 0.26rem;
                        font-weight: normal;
                        padding-top: 0.28rem;
                    }
                    >p{
                        width: $width;
                        line-height: 0.3rem;
                        padding-top: 0.28rem;
                        >span{
                            color: red;
                            font-size: 0.26rem;
                        }
                        >img{
                            width: 0.3rem;
                            height: 0.3rem;
                            margin-left: 5.2rem;
                        }
                    }
                }
            }
        }
        >.main-shop{
            width: $width;
            >h2{
                width: $width;
                height: 0.99rem;
                line-height: 0.99rem;
                text-align: center;
                font-size: 0.32rem;
                color: #1db6f0;
                border-bottom: 1px solid #d6d7dc;
            }
            >.main-shop-dl{
                width: $width;
                display: flex;
                justify-content: space-around;
                flex-wrap: wrap;
                >dl{
                    width: 3.33rem;
                    height: 5.11rem;
                    border: 0.01rem solid #d7d6dc;
                    border-radius: 0.05rem;
                    margin-top: 0.31rem;
                    >dt{
                        text-align: center;
                        width: 3.33rem;
                        height: 3.32rem;
                        border-bottom: 0.01rem solid #d7d6dc;
                        >img{
                            width: 3.33rem;
                            height: 3.32rem;
                            border-radius: 0.05rem;
                        }
                    }
                    >dd{
                        height: 1.78rem;
                        margin-left: 0.1rem;
                        >h2{
                            width: 3.1rem;
                            font-size: 0.26rem;
                            line-height: 0.58rem;
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;
                        }
                        >span{
                            font-size: 0.22rem;
                            line-height: 0.40rem;
                            color: #7e8798;
                        }
                        >p{
                            height: 0.84rem;
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            >span{
                                font-size: 0.24rem;
                                line-height: 0.84rem;
                            }
                            >img{
                                width: 0.3rem;
                                height: 0.3rem;
                                margin-right: 0.20rem;
                            }
                        }
                    }
                }
            }
        }
    }
}

